/**
 * 
 */
package org.restapp.core;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author asudar
 * 
 */
public class XUser {

	@NotNull
	private String firstName;
	@NotNull
	private String lastName;
	@NotNull
	private Integer age;
	@NotNull
	private String country;

	public XUser(String firstName, String lastName, Integer age, String country) {
		super();
		this.firstName = firstName;
		this.lastName = lastName;
		this.age = age;
		this.country = country;
	}

	@JsonProperty
	public String getFirstName() {
		return firstName;
	}

	@JsonProperty
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	@JsonProperty
	public String getLastName() {
		return lastName;
	}

	@JsonProperty
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	@JsonProperty
	public Integer getAge() {
		return age;
	}

	@JsonProperty
	public void setAge(Integer age) {
		this.age = age;
	}

	@JsonProperty
	public String getCountry() {
		return country;
	}

	@JsonProperty
	public void setCountry(String country) {
		this.country = country;
	}

	@Override
	@JsonProperty
	public String toString() {
		return "XUser [firstName=" + firstName + ", lastName=" + lastName
				+ ", age=" + age + ", country=" + country + "]";
	}
	
	

}
